import React from "react"
import LoginStore from "./login.Store"
import UserStore from "./user.Store"
import ChannelStore from "./channel.Store"

class Store {
  constructor() {
    this.loginStore = new LoginStore()
    this.userStore = new UserStore()
    this.channelStore = new ChannelStore()
  }
}
const rootStroe = new Store()
const creatContex = React.createContext(rootStroe)
const useStore = () => React.useContext(creatContex)

export { useStore }